package com.luochen.cdpt.controller;

import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;

import com.luochen.cdpt.response.RespBean;

@Controller
public class LoginController {

	@RequestMapping("/oauthLogin")
	@ResponseStatus(HttpStatus.UNAUTHORIZED)
	@ResponseBody
	public RespBean login() {
		return RespBean.error("尚未登录，请登录!");
	}
	
	
	@RequestMapping("/session_expired")
	@ResponseStatus(HttpStatus.UNAUTHORIZED)
	@ResponseBody
	public RespBean session_expired() {
		return RespBean.error("会话超时,请重新登录!");
	}
}
